package com.adopapa.nezhacloud.register;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletContextInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;

import jakarta.servlet.ServletContext;
import jakarta.servlet.ServletException;

@EnableDiscoveryClient
@ComponentScans({ //
		@ComponentScan("com.adopapa.nezhacloud"), //
		@ComponentScan("com.adopapa.nezhacloud.register")//
	})
//@ServletComponentScan(basePackages = "com.adopapa.nezhacloud.register.conf")
//@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@SpringBootApplication
public class RegisterApplication implements ServletContextInitializer {

	public static void main(String[] args) {
		SpringApplication.run(RegisterApplication.class, args);
	}

	@Override
	public void onStartup(ServletContext servletContext) throws ServletException {
		
		
	}

}
